<?php

namespace common\models\patient;

use Yii;

/**
 * This is the model class for table "{{%patient_medical_auxiliary}}".
 *
 * @property int $id
 * @property int $project_id 项目ID
 * @property int $patient_user_id 用户ID
 * @property string $desc 描述
 * @property int $operate_id 操作者ID
 * @property string $operate_name 操作人姓名
 * @property int $created_at 添加时间
 * @property int $updated_at 更新时间
 */
class MedicalAuxiliary extends \common\models\BaseModel
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%patient_medical_auxiliary}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['project_id', 'patient_user_id', 'operate_id', 'created_at', 'updated_at'], 'integer'],
            [['desc'], 'string', 'max' => 255],
            [['operate_name'], 'string', 'max' => 50],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'project_id' => '项目ID',
            'patient_user_id' => '用户ID',
            'desc' => '描述',
            'operate_id' => '操作者ID',
            'operate_name' => '操作人姓名',
            'created_at' => '添加时间',
            'updated_at' => '更新时间',
        ];
    }
}
